package com.tools.app.handle;

import com.hm.base.android.mob.service.impl.ACheckableJsonParser;

import org.json.JSONObject;

/**
 * desc:
 * date: 2017/12/28
 * author: ancun
 */

public class ReferrerHandler extends ACheckableJsonParser {

    private int customCodeMark;

    public ReferrerHandler() {
        customCodeMark = 0;
    }

    @Override
    protected void parserContent(JSONObject jsonObject) throws Exception {
        boolean result = jsonObject.has("result");
        customCodeMark = result ? 1 : 0;
    }

    public int getCustomCodeMark() {
        return customCodeMark;
    }
}
